//每个函数的返回值都是promise

import ajax from './ajax'
const BASE='http://baidu.com'//地址

//登录
export const reqLogin =(username,password)=>ajax(BASE+'/login',{username,password},'POST')